//
// Created by jsjxsy on 2022/7/7.
//

#include<stdio.h>
struct unpacked_str {
  char c;//1
  int x;//4
};//8
struct packed_str {
  char c;//1
  int x;//4
}__attribute__((packed));//5

int main(void) {
  printf("size of char=%lu\n", sizeof(char));
  printf("size of int=%lu\n", sizeof(int));
  printf("size of unpacked_str=%lu\n", sizeof(struct unpacked_str));
  printf("size of packed_str=%lu\n", sizeof(struct packed_str));
  return 0;
}